package com.ruoyi.bookstore.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言对象 message
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 借阅证编号 */
    @Excel(name = "借阅证编号")
    private Long cardId;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String detail;

    /** 留言日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "留言日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publicDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setPublicDate(Date publicDate) 
    {
        this.publicDate = publicDate;
    }

    public Date getPublicDate() 
    {
        return publicDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("detail", getDetail())
            .append("publicDate", getPublicDate())
            .toString();
    }
}
